import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";
export type OrderForm = {
  name: string;
  company: string;
  address: string;
  phone: string;
  order: string;
  special_data: Date;
  remark: string;
};
/* 下单 */
export const placeOrder = (data?: object) => {
  return http.request<any>("post", baseUrlApi("orders/"), { data });
};
/* 查询订单 根据用户名进行查询*/
export const getOrder_name = (params?: object) => {
  return http.request("get", "/orders", { params });
};
